// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import com.nnee.p_b.p_a.cls_b;
import com.nnee.p_b.p_a.cls_g;
import com.nnee.p_fk.p_b.cls_a;
import com.nnee.p_fk.p_b.cls_c;
import com.nnee.p_fk.p_b.cls_d;
import com.nnee.p_pr.p_activity.p_view.WebViews.WebViewAdapter;
import java.util.LinkedList;
import java.util.List;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            an, PrisArticleView

class ag
    implements cls_d
{

    protected cls_ag(PrisArticleView prisarticleview)
    {
        a = new cls_an(this);
        c = prisarticleview;
        b = new LinkedList();
    }

    public void a()
    {
        List list = b;
        list;
        JVM INSTR monitorenter ;
        b.clear();
        return;
    }

    public void a(int i, int j, int k, Object obj)
    {
        synchronized(b)
        {
            if(!b.remove(Integer.valueOf(k)))
                break MISSING_BLOCK_LABEL_65;
        }
        if(obj != null)
            a.obtainMessage(i, j, k, obj).sendToTarget();
          goto _L1
        exception;
        list;
        JVM INSTR monitorexit ;
        throw exception;
_L1:
    }

    public void a(int i, int j, cls_b b1)
    {
        if(c != null && com.nnee.p_pr.p_activity.p_view.PrisArticleView.c(c) != null && PrisArticleView.h(c) != null) goto _L2; else goto _L1
_L1:
        return;
_L2:
        String s = b1.b;
        if(!TextUtils.isEmpty(s))
        {
            StringBuilder stringbuilder = new StringBuilder();
            stringbuilder.append("javascript:refreshImg('");
            stringbuilder.append(i);
            stringbuilder.append("','");
            stringbuilder.append("file://");
            stringbuilder.append(s);
            stringbuilder.append("')");
            PrisArticleView.h(c).loadUrl(stringbuilder.toString());
        }
        synchronized(com.nnee.p_pr.p_activity.p_view.PrisArticleView.c(c).c())
        {
            list.remove(b1.a);
        }
        if(list.size() == 0)
            com.nnee.p_pr.p_activity.p_view.PrisArticleView.a(c, true);
        if(true) goto _L1; else goto _L3
_L3:
        exception;
        list;
        JVM INSTR monitorexit ;
        throw exception;
    }

    public void a(int i, int j, String s)
    {
        if(c != null && com.nnee.p_pr.p_activity.p_view.PrisArticleView.c(c) != null) goto _L2; else goto _L1
_L1:
        return;
_L2:
        List list;
        list = com.nnee.p_pr.p_activity.p_view.PrisArticleView.c(c).c();
        if(s == null || list == null)
            continue; /* Loop/switch isn't completed */
        list;
        JVM INSTR monitorenter ;
        list.remove(s);
        list;
        JVM INSTR monitorexit ;
        if(list.size() == 0)
            com.nnee.p_pr.p_activity.p_view.PrisArticleView.a(c, true);
        if(true) goto _L1; else goto _L3
_L3:
        Exception exception;
        exception;
        list;
        JVM INSTR monitorexit ;
        throw exception;
    }

    public void a(String s, int i)
    {
        cls_g g1 = g.a(s, i, false);
        g1.b(PrisArticleView.n(c));
        g1.c(c.e());
        g1.a(this);
        synchronized(b)
        {
            b.add(Integer.valueOf(g1.m()));
        }
        com.nnee.p_img.cls_d.a().d().a(g1);
        return;
        exception;
        list;
        JVM INSTR monitorexit ;
        throw exception;
    }

    public void b()
    {
        c = null;
    }

    public void b(int i, int j, int k, Object obj)
    {
        synchronized(b)
        {
            if(!b.remove(Integer.valueOf(k)))
                break MISSING_BLOCK_LABEL_61;
        }
        if(obj != null)
            a(k, i, (String)obj);
          goto _L1
        exception;
        list;
        JVM INSTR monitorexit ;
        throw exception;
_L1:
    }

    Handler a;
    private List b;
    private cls_PrisArticleView c;
}
